<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPH::DampingWithRandomChoice&lt; DampingAlgorithmType &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_s_p_h.html">SPH</a></li><li class="navelem"><a class="el" href="class_s_p_h_1_1_damping_with_random_choice.html">DampingWithRandomChoice</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_s_p_h_1_1_damping_with_random_choice-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SPH::DampingWithRandomChoice&lt; DampingAlgorithmType &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A random choice method for obstaining static equilibrium state Note that, if periodic boundary condition is applied, the parallelized version of the method requires the one using ghost particles because the splitting partition only works in this case.  
 <a href="class_s_p_h_1_1_damping_with_random_choice.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="particle__dynamics__dissipation_8h_source.html">particle_dynamics_dissipation.h</a>&gt;</code></p>

<p>Inherits <a class="el" href="class_damping_algorithm_type.html">DampingAlgorithmType</a>.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad56d974556993dc5abd7381c494b1ca3"><td class="memTemplParams" colspan="2"><a id="ad56d974556993dc5abd7381c494b1ca3"></a>
template&lt;class BodyRelationType &gt; </td></tr>
<tr class="memitem:ad56d974556993dc5abd7381c494b1ca3"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><b>DampingWithRandomChoice</b> (BodyRelationType *body_relation, Real random_ratio, std::string variable_name, Real eta)</td></tr>
<tr class="separator:ad56d974556993dc5abd7381c494b1ca3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecf89fbdb323306a688bc64c6140d3b3"><td class="memItemLeft" align="right" valign="top"><a id="aecf89fbdb323306a688bc64c6140d3b3"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>exec</b> (Real dt=0.0) override</td></tr>
<tr class="separator:aecf89fbdb323306a688bc64c6140d3b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9974325309005a5160690a7a6f98fe09"><td class="memItemLeft" align="right" valign="top"><a id="a9974325309005a5160690a7a6f98fe09"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>parallel_exec</b> (Real dt=0.0) override</td></tr>
<tr class="separator:a9974325309005a5160690a7a6f98fe09"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:aae883a20bd9de5aa39cf247b018bb631"><td class="memItemLeft" align="right" valign="top"><a id="aae883a20bd9de5aa39cf247b018bb631"></a>
<a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><b>RandomChoice</b> ()</td></tr>
<tr class="separator:aae883a20bd9de5aa39cf247b018bb631"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:af5080b5d286b0b1087ba88e7640453f2"><td class="memItemLeft" align="right" valign="top"><a id="af5080b5d286b0b1087ba88e7640453f2"></a>
Real&#160;</td><td class="memItemRight" valign="bottom"><b>random_ratio_</b></td></tr>
<tr class="separator:af5080b5d286b0b1087ba88e7640453f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class DampingAlgorithmType&gt;<br />
class SPH::DampingWithRandomChoice&lt; DampingAlgorithmType &gt;</h3>

<p>A random choice method for obstaining static equilibrium state Note that, if periodic boundary condition is applied, the parallelized version of the method requires the one using ghost particles because the splitting partition only works in this case. </p>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>SPHINXsys/src/shared/particle_dynamics/dissipation_dynamics/<a class="el" href="particle__dynamics__dissipation_8h_source.html">particle_dynamics_dissipation.h</a></li>
<li>SPHINXsys/src/shared/particle_dynamics/dissipation_dynamics/<a class="el" href="particle__dynamics__dissipation_8hpp_source.html">particle_dynamics_dissipation.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
